package proj.user;

import java.beans.*;
import java.io.*;
import java.util.*;

public class AddUser {
	public static void main(String[] args) {
		XMLEncoder xe = null;
		try {
			Map<String, String> map = new HashMap<>();
			map.put("tom", "1344");
			map.put("jack", "1234");
			xe = new XMLEncoder(new FileOutputStream("src/proj/user/user.xml"));
			xe.writeObject(map);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (xe != null)
				xe.close();
		}
	}
}
